# your_app_name/serializers.py

from rest_framework import serializers
from .models import *


class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class DictionarySerializer(serializers.ModelSerializer):
    class Meta:
        model = Dictionary
        fields = '__all__'


class SMSVerificationSerializer(serializers.ModelSerializer):
    class Meta:
        model = SMSVerification
        fields = '__all__'


class CategorySerializer(serializers.ModelSerializer):
    class Meta:
        model = Category
        fields = '__all__'


class ResourceSerializer(serializers.ModelSerializer):
    class Meta:
        model = Resource
        fields = '__all__'


class ArticleBlogSerializer(serializers.ModelSerializer):
    class Meta:
        model = ArticleBlog
        fields = '__all__'


class SiteInclusionSerializer(serializers.ModelSerializer):
    class Meta:
        model = SiteInclusion
        # fields = ['id', 'type', 'name', 'link', 'description', 'email', 'phone_number', 'nickname', 'created_at',
        #           'updated_at', 'added_by', 'category', 'category_title']
        fields = '__all__'

